package miku.firstgame.net
{
	import flash.utils.ByteArray;

	/**
	 * 反序列化bytes到String
	 */
	internal class Decoder
	{
		public static function decode(packet:ByteArray):String
		{
			packet.position = 0;
			return packet.readMultiByte(packet.bytesAvailable, "utf-8");
		}
	}
}
